package Code.Basic.AI.Pathfinding;

public class ZoneConnection
{
	private OpenZone connectedZone;
	private long movementCost;
	private double[] endPoints;
	
	public ZoneConnection(OpenZone zone, long cost, double[] ends)
	{
		connectedZone = zone;
		movementCost = cost;
		endPoints = ends;
	}
	
	public OpenZone getConnectedZone()
	{
		return connectedZone;
	}
	
	public double[] getEndPoints()
	{
		return endPoints;
	}
	
	public long getMovementCost()
	{
		return movementCost;
	}
	
	public long getGValue() 
	{
		return movementCost + connectedZone.getBonusGValues();
	}
}
